<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. 

$metinfocolumn=array(
	array('id'=>1,'name'=>$lang_indexbasic),/*系统配置*/
	array('id'=>2,'name'=>$lang_indexskin),/*界面风格*/
	array('id'=>3,'name'=>$lang_indexcolumn),/*栏目配置*/
	array('id'=>4,'name'=>$lang_indexcontent),/*内容管理*/
	array('id'=>5,'name'=>$lang_indexseo),/*优化推广*/
	array('id'=>6,'name'=>$lang_indexapp),/*企业应用*/
	array('id'=>7,'name'=>$lang_indexuser)/*用户管理*/
);
$met_weburls=explode('/',$met_weburl);
$url_now=$_SERVER['SERVER_NAME']?$_SERVER['SERVER_NAME']:$_SERVER['HTTP_HOST'];
$domain=$met_weburl;
if($url_now!=$met_weburls[2]){
	$domain=str_replace($met_weburls[2],$url_now,$met_weburl);
}
$sidebarcolumn=array(
array('id'=>8,'name'=>$lang_indexsysteminfo,'url'=>'system/sysadmin.php?','bigclass'=>1,'field'=>''),/*系统信息*/
array('id'=>9,'name'=>$lang_indexbasicinfo,'url'=>'system/basic.php?','bigclass'=>1,'field'=>'1001'),/*基本信息*/
array('id'=>10,'name'=>$lang_indexlang,'url'=>'system/lang/lang.php?','bigclass'=>1,'field'=>'1002'),/*语言选项*/
array('id'=>11,'name'=>$lang_indexpic,'url'=>'system/img.php?','bigclass'=>1,'field'=>'1003'),/*图片配置*/
array('id'=>12,'name'=>$lang_indexsafe,'url'=>'system/safe.php?','bigclass'=>1,'field'=>'1004'),/*安全与效率*/
array('id'=>13,'name'=>$lang_indexdataback,'url'=>'system/database/index.php?','bigclass'=>1,'field'=>'1005'),/*数据与备份*/
array('id'=>14,'name'=>$lang_indexupload,'url'=>'system/uploadfile.php?','bigclass'=>1,'field'=>'1006'),/*上传文件与管理*/
array('id'=>15,'name'=>$lang_indexcode,'url'=>'system/authcode.php?','bigclass'=>1,'field'=>''),/*商业授权*/
array('id'=>16,'name'=>$lang_indexebook,'url'=>'http://www.metinfo.cn/course/','bigclass'=>1,'field'=>''),/*用户手册*/
array('id'=>17,'name'=>$lang_indexbbs,'url'=>'http://bbs.metinfo.cn/','bigclass'=>1,'field'=>''),/*技术支持*/

array('id'=>18,'name'=>$lang_temstyle,'url'=>'interface/skin_manager.php?','bigclass'=>2,'field'=>'1101'),/*界面风格*/
array('id'=>19,'name'=>$lang_indexhomeset,'url'=>'interface/skin.php?cs=2&','bigclass'=>2,'field'=>'1102'),/*模板管理*/
array('id'=>20,'name'=>$lang_pagesting,'url'=>'interface/skin.php?cs=3&','bigclass'=>2,'field'=>'1103'),/*模板管理*/
array('id'=>21,'name'=>$lang_contsting,'url'=>'interface/skin.php?cs=4&','bigclass'=>2,'field'=>'1104'),/*模板管理*/
array('id'=>22,'name'=>$lang_indexflashset,'url'=>'interface/flash/setflash.php?','bigclass'=>2,'field'=>'1105'),/*FLASH配置*/
array('id'=>24,'name'=>$lang_indexonlineset,'url'=>'interface/online/index.php?','bigclass'=>2,'field'=>'1106'),/*在线交流配置*/
array('id'=>26,'name'=>$lang_indexskinset,'url'=>$domain.$met_adminfile.'/interface/info.php?lang='.$lang,'bigclass'=>2,'field'=>'','other'=>1),/*模板配置导航*/

array('id'=>27,'name'=>$lang_indexcolumn,'url'=>'column/index.php?','bigclass'=>3,'field'=>'1201'),/*栏目配置*/
array('id'=>28,'name'=>$lang_mod3.$lang_field,'url'=>'column/parameter/parameter.php?module=3&','bigclass'=>3,'field'=>'1202'),/*产品模块参数*/
array('id'=>29,'name'=>$lang_mod4.$lang_field,'url'=>'column/parameter/parameter.php?module=4&','bigclass'=>3,'field'=>'1203'),/*下载模块参数*/
array('id'=>30,'name'=>$lang_mod5.$lang_field,'url'=>'column/parameter/parameter.php?module=5&','bigclass'=>3,'field'=>'1204'),/*图片模块参数*/

array('id'=>31,'name'=>$lang_indexcontent,'url'=>'content/content.php?','bigclass'=>4,'field'=>'1301'),/*内容管理*/
array('id'=>33,'name'=>$lang_indexfoot,'url'=>'content/foot.php?','bigclass'=>4,'field'=>'1302'),/*底部信息*/
array('id'=>32,'name'=>$lang_indexotherinfo,'url'=>'content/other_info.php?','bigclass'=>4,'field'=>'1303'),/*备用字段*/
array('id'=>44,'name'=>$lang_bulkopr,'url'=>'app/batch/contentup.php?','bigclass'=>4,'field'=>'1304'),/*图片批量操作*/
array('id'=>34,'name'=>$lang_recycle,'url'=>'content/recycle/index.php?','bigclass'=>4,'field'=>'1305'),/*内容回收站*/

array('id'=>41,'name'=>$lang_indexwebcount,'url'=>'app/stat/index.php?','bigclass'=>5,'field'=>'1401'),/*站长统计*/
array('id'=>35,'name'=>$lang_indexhtmset,'url'=>'seo/sethtm.php?','bigclass'=>5,'field'=>'1402'),/*静态页面设置*/
array('id'=>36,'name'=>$lang_htmsitemap,'url'=>'seo/sitemap.php?','bigclass'=>5,'field'=>'1403'),/*静态页面生成*/
array('id'=>38,'name'=>$lang_indexseoset,'url'=>'seo/seo.php?','bigclass'=>5,'field'=>'1404'),/*SEO参数设置*/
array('id'=>39,'name'=>$lang_indexhot,'url'=>'seo/strcontent.php?','bigclass'=>5,'field'=>'1405'),/*热门标签*/
array('id'=>40,'name'=>$lang_indexlink,'url'=>'seo/link/index.php?','bigclass'=>5,'field'=>'1406'),/*静态页面生成*/

array('id'=>45,'name'=>$lang_smsfuc,'url'=>'app/sms/sms.php?','bigclass'=>6,'field'=>'1503'),/*图片批量操作*/
array('id'=>43,'name'=>$lang_indexwap,'url'=>'app/wap/wap.php?','bigclass'=>6,'field'=>'1502'),/*WAP功能*/
array('id'=>46,'name'=>$lang_webnanny,'url'=>'app/nurse/index.php?','bigclass'=>6,'field'=>'1504'),/*图片批量操作*/
array('id'=>42,'name'=>$lang_indexPhysical,'url'=>'app/physical/index.php?','bigclass'=>6,'field'=>'1501'),/*网站体检*/
array('id'=>47,'name'=>$lang_myapp,'url'=>'app/dlapp/index.php?','bigclass'=>6,'field'=>'1505'),/*图片批量操作*/

array('id'=>48,'name'=>$lang_memberManage,'url'=>'member/index.php?','bigclass'=>7,'field'=>'1601'),/*会员管理*/
array('id'=>49,'name'=>$lang_memberset,'url'=>'member/member.php?','bigclass'=>7,'field'=>'1602'),/*会员功能配置*/
);
if($metmanager){
	$sidebarcolumn[]=array('id'=>50,'name'=>$lang_indexadminname,'url'=>'admin/index.php?','bigclass'=>7,'field'=>'1603');/*管理员管理*/
}else{
	if($metinfo_admin_pop=="metinfo" || $admin_pop1601=="metinfo"){
		$sidebarcolumn[]=array('id'=>50,'name'=>$lang_indexadminname,'url'=>'admin/index.php?','bigclass'=>7,'field'=>'1603');/*管理员管理*/
		$sidebarcolumn[]=array('id'=>51,'name'=>$lang_indexperson,'url'=>'admin/editor_pass.php?id='.$admin_list[id].'&','bigclass'=>7,'field'=>'');
	}else{
		$sidebarcolumn[]=array('id'=>51,'name'=>$lang_indexperson,'url'=>'admin/editor_pass.php?id='.$admin_list[id].'&','bigclass'=>7,'field'=>'');
	}
}
foreach($sidebarcolumn as $key=>$val){
	$purview=$val['field']==''?'':'admin_pop'.$val['field'];
	$purview=$val['field']==''?'metinfo':$$purview;
	if($metinfo_admin_pop=="metinfo" || $purview=='metinfo'){
		$onnav=$val[id]==8?'class="on"':'';
		$target=strstr($val[url],"http://")?'target="_blank"':'target="main"';
		$valcid=$target=='target="_blank"'?'':'id="nav_'.$val['bigclass'].'_'.$val['id'].'"';
		if($val['other'])$valcid='target="_blank"'.'id="nav_'.$val['bigclass'].'_'.$val['id'].'"';
		$val['property']=$valcid.' '.$target.' '.$onnav;
		if(!strstr($val[url],"http://"))$val['url']=$val['url'].'anyid='.$val['id'].'&lang='.$lang;
		$sidebarcolumns[]=$val;
		$letplace[$val['id']]=$val;
	}
}
$i=0;
foreach($sidebarcolumns as $key=>$val){
	if($val['bigclass']==2)$i++;
}
if($i==1)$metinfocolumn[1]['display']=1;
$sidebarcolumn=$sidebarcolumns;
foreach($metinfocolumn as $key=>$val){
	$toplace[$val['id']]=$val;
}
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>